﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FastReport;
using dhSystemBLL.basicData;
using dhSystemBLL.orderData;

namespace dhsystem.basicForm
{
    public partial class FrmPrint : Form
    {
        Report r1 = new Report();
        object t = null;
        string moduleNum = null;
        public FrmPrint(object _t,string _moduleNum)
        {
            InitializeComponent();
            t = _t;
            moduleNum = _moduleNum;
        }

        private void FrmPrint_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            

            r1.RegisterData((DataSet)t);
            r1.Preview = previewControl1;
            r1.Load(@"e:\Untitled.frx");
            r1.Show();
           // r1.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            r1.RegisterData((DataSet)t);
            r1.Preview = previewControl1;
            r1.Load(@"e:\Untitled.frx");
            r1.Design();
        }

    
    }
}
